home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
text
/
mags
/
Resident4.lzh
/
HD-Install
next >
Wrap
Text File
|
1993-11-10
|
3KB
|
90 lines
echo "Resident #4 HD-Installation program
echo "*Ec*NHard Disk Install for Resident #4*N"
FailAt 21
echo "This script assumes you have some commands in your search-path (eg c:)."
echo "These files are 'echo' (already found, congratulations! :), 'copy', 'ask',"
echo "'assign', 'skip', 'lab' and 'cd'.*N"
echo "*NWe are now going to install all the files to run Resident #4"
ask "on your hard disk. Is this what you want to do? (Type 'Y' for yes)"
If NOT WARN
echo "*N Exiting..."
Skip Exit
EndIf
echo "*N First we need to know where to install the program. Resident"
echo "needs about 200kB free diskspace. Please type the name of the disk"
echo "and/or the directory you wish to install to: " NOLINE
assign >NIL: RESsrc: ""
assign >NIL: REStmp: ?
assign >NIL: REStmp: exists
If WARN
Skip usage
EndIf
cd REStmp:
echo "*NYou selected the directory: " NOLINE
cd
echo "*NWe can create a drawer for Resident #4, or place the files"
echo "directly in the above directory. Would you like to place all"
ask "the files directly in the selected directory? (y/N) "
If NOT WARN
echo "*NCreating a new directory named Resident4"
Makedir > nil: Resident4
If WARN
echo "*NResident4 already exists there. Do you want to delete "
ask "the old files and continue with this installation? (y/N)"
If WARN
echo " deleting old files..."
delete >NIL: REStmp:Resident4/#? all
Else
ask " (return to exit)"
Skip exit
EndIf
EndIf
copy RESsrc:c/Resident4.info ""
cd REStmp:Resident4
endIf
echo "*N*NCopying files..."
makedir c ClipArts TEXT ZeroQ
copy RESsrc:c/adlrun c/ quiet
copy RESsrc:ClipArts ClipArts all quiet
copy RESsrc:TEXT TEXt all quiet
copy RESsrc:ZeroQ ZeroQ all quiet
copy RESsrc:ReaderForm.TXT RESsrc:ReaderForm.TXT.info "" quiet
copy RESsrc:ReadMe RESsrc:ReadMe.info "" quiet
copy RESsrc:Res4.Exe RESsrc:Resident4 RESsrc:Resident4.info "" quiet
copy RESsrc:Zero.Script RESsrc:ZeroQuest RESsrc:ZeroQuest.info "" quiet
if EXISTS libs:powerpacker.library
echo "*NVersion of powerpacker.library installed : " NOLINE
version libs:powerpacker.library
echo "Version of powerpacker.library to install: " NOLINE
version RESsrc:libs/powerpacker.library
ask "Should I install new powerpacker.library?"
if not WARN
skip noppinstall
endif
endif
echo "Copying powerpacker.library to LIBS:..."
copy RESsrc:libs/powerpacker.library libs:
LAB noppinstall
ask "*NInstallation complete. (return to exit)"
SKIP exit
LAB usage
echo "*NSorry that drive is not a valid drive, please check the name"
ask " and run the install again... (return to exit)"
LAB exit
assign RESsrc:
assign REStmp:
EndCLI >NIL: